package com.codeczx.testvaluedemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {

    private static final String TAG = "MainActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        printUIParams();
    }

    private void printUIParams() {
        float density = getResources().getDisplayMetrics().density;
        Log.i(TAG, "printUIParams: density:"+density);
        float scaledDensity = getResources().getDisplayMetrics().scaledDensity;
        Log.i(TAG, "printUIParams: scaledDensity:"+scaledDensity);
    }
}
